Function Reference

_WeekNumberISO

Calculate the weeknumber of a given date.

#include <Date.au3>
_WeekNumberISO($iYear=@YEAR, $iMonth=@MON, $iDay=@MDAY)

 

Parameters

$iYear Year value (default = current year)
$iMonth Month value (default = current month)
$iDay Day value (default = current day)
$iWeekstart Week starts from Sunday (0, default) or Monday (1)

 

Return Value

Success: Returns week number of given date
Failure: -1
@Error: 0 = No error.
1 = faulty parameters values
99 = On non-acceptable weekstart value

 

Remarks

None.

 

Related

None.

 

Example


#include <Date.au3>

MsgBox(0,"Todays weeknumber","Todays weeknumber is " & _WeekNumberISO())